<form action="" method="post">
	First Name :<input  type="text" name="firstname" value="<?=$record['firstname']?>"> <?= form_error('firstname'); ?><br/>
	Middle Name:<input type="text" name="middlename" value="<?=$record['middlename']?>"> <?=form_error('middlename'); ?><br/>
	Last Name:<input type="text" name="lastname" value="<?=$record['lastname']?>"> <?=form_error('lastname'); ?><br/>
	Username:<input type="text" name="username" value="<?=$record['username']?>"> <?=form_error('username'); ?><br/>
	 <br/> <br/> <br/>
	 <input type="submit" name="submit" value="Register"> 
</form>